import styled from "styled-components";

export const Writewrap = styled.div`
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: #ffffff;
  & > .top {
    height: 70px;
    font-size: 30px;
    font-weight: 900;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    & > input {
      border-style: none;
      outline: none;
    }
    & > .right {
      width: 300px;
      display: flex;
      font-size: 18px;
      align-items: center;
      justify-content: space-between;
      position: relative;
      & > span {
        padding: 5px 10px;
        cursor: pointer;
      }
      & > .iconfont {
        font-size: 24px;
        &:hover {
          background-color: #eeeeee;
        }
      }
      & > .public {
        color: #ff529b;
        &:hover {
          background-color: #fff1f1;
        }
      }
      & > .cover {
        width: 260px;
        height: 200px;
        position: absolute;
        top: 50px;
        right: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        z-index: 1;
        background-color: #ffffff;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
        & > .img {
          width: 100%;
          height: 100%;
          & > img {
            width: 100%;
            height: 100%;
          }
          & > span {
            position: absolute;
            right: 10px;
            top: 10px;
            background-color: #272727;
            font-size: 20px;
            cursor: pointer;
            color: white;
            padding: 0 10px;
            &:hover {
              background-color: #383838;
            }
          }
        }
        & > .iconfont {
          font-size: 40px;
          padding: 0 20px;
          cursor: pointer;
          transition: all 0.5s;
          &:hover {
            background-color: #eeeeee;
          }
        }
      }
    }
  }
`;
